package com.neuedu.his.controller;

import com.neuedu.his.po.Registlevel;
import com.neuedu.his.service.RegistlevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/registlevel")
public class RegistLevelController {

    @Autowired
    private RegistlevelService registlevelService;

    @GetMapping("/list")
    public List<Registlevel> list() {
        return registlevelService.list();
    }
}